<?php

/**
 * Club form.
 *
 * @package    cpfaizenay
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ClubForm extends BaseClubForm
{
  public function configure()
  {
      sfApplicationConfiguration::getActive()->loadHelpers('Url'); // obligatoire pour pouvoir utiliser url_for
      
      $autocomplete = new sfWidgetFormDoctrineJQueryAutocompleter(array('model' => 'City', 'url' => url_for('@autocompleteCity')));
      $this->widgetSchema['city_id'] = $autocomplete;

      unset($this['created_at'], $this['updated_at']);
  }
}
